package edu.spbsu.nonsm00th.qdiff.parser.exception;

import java.text.MessageFormat;

/**
 * Throws if there is any operation except + and - goes after bracket in expression.
 *
 * @author mbuzdov
 */
public class NotUnaryOperationException extends ParserException {

    public NotUnaryOperationException(int position) {
        super(MessageFormat.format("Only + and - can be unary, position: {0}.", position));
        this.position = position;
    }

}
